package com.sxbbc.common.basics.enums;

/**
 * 收货 发货方式枚举1物流发货 2门店自提 3虚拟发货
 * @author arno
 *
 */
public enum ReceivedTypeEnums {

	LOGISTICS(1,"物流发货"),
	SHOP(2,"门店自提"),
	NONE(3,"虚拟发货");
	
	private int id;
	private String name;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	private ReceivedTypeEnums(int id,String name) {
		this.id=id;
		this.name=name;
	}
	
	public static String getName(int id) {
		for(ReceivedTypeEnums e:ReceivedTypeEnums.values()) {
			if(id==e.getId()) {
				return e.getName();
			}
		}
		return "";
	}
	
	public static void main(String[] args) {
		System.out.println("logistics".toUpperCase());
	}
}
